package com.fingard.dsp.bank.reqrespobj.importlc;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.importlc.detail.ReqImportLCQryDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by F on 2017/12/15.
 */
public class ReqImportLCQry extends RequestBase {
    public ReqImportLCQryDetail detail;
    private XmlTextReader xmlReader;
    public boolean readRecord() throws  Exception
    {
        detail = null;
        if(xmlReader.read("/ATSYH/TransReq/TransParam"))
        {
            detail = new ReqImportLCQryDetail(xmlReader.readedXElement);
            return true;
        }
        else
        {
            return false;
        }
    }

    public ReqImportLCQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception
    {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
    }
}
